package net.sf.rose.boot.bean;

import lombok.Data;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * 类说明：开机启动类定义
 * 
 * @author 作者 fgg047 E-mail: 9110530@qq.com
 * @version 创建时间：2020-07-10
 */
@Data
@Table(name = "SYS_BOOT_START")
public class BootStartBean {

	@Column(name = "START_ID", pk = true, type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String startID = null;

	/** 1:有效 */
	@Column(name = "NEED_START", type = Type.数字整型, description = "是否需要启动")
	private int needStart = 0;

	@Column(name = "DESCRIPTION", type = Type.变长文本, description = "说明", size = 250)
	private String description = null;

	@Column(name = "CLASS_NAME", type = Type.变长文本, description = "类名称", size = 250)
	private String className = null;

	@Column(name = "DATA_JSON", type = Type.超长文本, description = "数据")
	private String dataJson = null;

	public boolean isNeedStart() {
		return needStart == 1;
	}

}
